package org.zhhw.feign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.zhhw.feign.service.FeignTestService;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: jack
 * \* Date: 2019/1/23
 * \* Time: 15:54
 * \* Description:
 * \
 */
@RestController
public class HelloController {
    @Autowired
    FeignTestService feignTestService;

    @GetMapping("/hello")
    public String getHelloOfEurekaClient(){
        return  feignTestService.hello();
    }

}
